<template>
  <section class="header-box">
    <div class="logo" @click="goHome"></div>
    <top-menu class="top-menu" />
  </section>
</template>

<script lang="ts" setup>
  import { useRouter } from 'vue-router';
  import TopMenu from './top-menus.vue';

  const router = useRouter();
  const goHome = () => {
    router.push('/');
  };
</script>
<style lang="less" scoped>
  .header-box {
    .logo {
      width: 150px;
      height: 33px;
      margin: 14px 28px 0 0;
      float: left;
      cursor: pointer;
      background: no-repeat center/100% url('@/assets/image/logo.png');
    }
    .top-menu {
      float: right;
    }
  }
</style>
